xen.git
18 years agoioemu: use standard uint8_t instead of uint8 in new e100 s/r code
Keir Fraser [Wed, 30 Jan 2008 09:37:06 +0000 (09:37 +0000)]
ioemu: use standard uint8_t instead of uint8 in new e100 s/r code
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoxend: Perform uuid/name uniqueness check on restore.
Keir Fraser [Wed, 30 Jan 2008 09:35:49 +0000 (09:35 +0000)]
xend: Perform uuid/name uniqueness check on restore.
From: Zhigang Wang <zhigang.x.wang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoioemu: Better fix for SB16 infinite looping.
Keir Fraser [Wed, 30 Jan 2008 09:33:26 +0000 (09:33 +0000)]
ioemu: Better fix for SB16 infinite looping.

Qemu upstream solves "Fix an infinite loop in the emulated SB16
device" issue differently as stated in [2]

[1] http://xenbits.xensource.com/xen-3.1-testing.hg?rev/4b22d472bda6
[2] http://lists.gnu.org/archive/html/qemu-devel/2008-01/msg00709.html

Signed-off-by: S. Caglar Onur <caglar@pardus.org.tr>
18 years agovtpm: Small makefile fix.
Keir Fraser [Wed, 30 Jan 2008 09:31:35 +0000 (09:31 +0000)]
vtpm: Small makefile fix.
Signed-off-by: Jason Andryuk <the_deuce@yahoo.com>
18 years agominios: Fix bug when blkfront reading into zero-mapped buffer
Keir Fraser [Tue, 29 Jan 2008 15:18:27 +0000 (15:18 +0000)]
minios: Fix bug when blkfront reading into zero-mapped buffer
by just poking the page.
No need to use virtual_to_mfn() for the ring since that is a real page.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoxend: Fix building PV guests after introducing new HVM-HAP config option.
Keir Fraser [Tue, 29 Jan 2008 15:16:35 +0000 (15:16 +0000)]
xend: Fix building PV guests after introducing new HVM-HAP config option.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoxend: Obey localtime config option for HVM guests as well as PV guests.
Keir Fraser [Tue, 29 Jan 2008 15:15:51 +0000 (15:15 +0000)]
xend: Obey localtime config option for HVM guests as well as PV guests.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86, hvm: Add a per-domain parameter to specify shadow or hap.
Keir Fraser [Tue, 29 Jan 2008 13:46:16 +0000 (13:46 +0000)]
x86, hvm: Add a per-domain parameter to specify shadow or hap.
Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
18 years agox86: Fix shadow pinning logic (for PV live relo).
Keir Fraser [Tue, 29 Jan 2008 11:50:30 +0000 (11:50 +0000)]
x86: Fix shadow pinning logic (for PV live relo).
From: Tim Deegan <Tim.Deegan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86: Fix HVM hypercall preemption causing guest crash.
Keir Fraser [Tue, 29 Jan 2008 11:47:42 +0000 (11:47 +0000)]
x86: Fix HVM hypercall preemption causing guest crash.
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
18 years agoioemu: Add support for e100 nic save/restore.
Keir Fraser [Tue, 29 Jan 2008 11:45:15 +0000 (11:45 +0000)]
ioemu: Add support for e100 nic save/restore.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
18 years agox86: Fix XENPF_change_freq hypercall to not dereference a non-existent
Keir Fraser [Tue, 29 Jan 2008 11:19:04 +0000 (11:19 +0000)]
x86: Fix XENPF_change_freq hypercall to not dereference a non-existent
stack variable. Also sanity check (slightly) the frequency argument to
cpu_frequency_change().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86: Fix 16889:60bb765b25b5 in a couple of respects:
Keir Fraser [Tue, 29 Jan 2008 09:36:37 +0000 (09:36 +0000)]
x86: Fix 16889:60bb765b25b5 in a couple of respects:
 1. Leave bottom-most 1MB permanently mapped.
 2. ACPI-table mapping code shoudl be aware that mappings above 1MB of
 non-RAM are not permanent.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agominios: Fix ia64 build.
Keir Fraser [Mon, 28 Jan 2008 12:58:57 +0000 (12:58 +0000)]
minios: Fix ia64 build.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
18 years agoUpdate hgignore list now that tools/libxc/xen/ no longer exists.
Keir Fraser [Mon, 28 Jan 2008 12:04:38 +0000 (12:04 +0000)]
Update hgignore list now that tools/libxc/xen/ no longer exists.

18 years agofirmware: Use new path to xen public headers.
Keir Fraser [Mon, 28 Jan 2008 12:03:02 +0000 (12:03 +0000)]
firmware: Use new path to xen public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agovmx realmode: Multiple I/O reads to qemu in an instruction is not
Keir Fraser [Mon, 28 Jan 2008 11:28:55 +0000 (11:28 +0000)]
vmx realmode: Multiple I/O reads to qemu in an instruction is not
allowed. But we do allow, for example, a read followed by a write
(e.g., MOVS within video RAM).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86-64: use 1GB pages in 1:1 mapping if available
Keir Fraser [Mon, 28 Jan 2008 10:17:05 +0000 (10:17 +0000)]
x86-64: use 1GB pages in 1:1 mapping if available

At once adjust the 2/4Mb page handling slightly in a few places (to
match the newly added code):
- when re-creating a large page mapping after finding that all small
  page mappings in the respective area are using identical flags and
  suitable MFNs, the virtual address was already incremented pas the
  area to be dealt with, which needs to be accounted for in the
  invocation of flush_area() in that path
- don't or-in/and-out _PAGE_PSE on non-present pages
- when comparing flags, try minimse the number of l1f_to_lNf()/
  lNf_to_l1f() instances used
- instead of skipping a single page when encountering a big page
  mapping equalling to what a small page mapping would establish, skip
  to the next larger page boundary

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoMake check-libext2fs cross-friendly
Keir Fraser [Mon, 28 Jan 2008 09:33:57 +0000 (09:33 +0000)]
Make check-libext2fs cross-friendly

check-libext2fs was calling host gcc; pass $CC from Makefile
so it can call the cross-compiler instead.

Signed-off-by: Aron Griffis <aron@hp.com>
18 years agoMove remaining xen/include/public/foreign files to tools/include/xen-foreign
Keir Fraser [Sun, 27 Jan 2008 17:25:56 +0000 (17:25 +0000)]
Move remaining xen/include/public/foreign files to tools/include/xen-foreign
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
--HG--
rename : xen/include/public/foreign/mkchecker.py => tools/include/xen-foreign/mkchecker.py
rename : xen/include/public/foreign/mkheader.py => tools/include/xen-foreign/mkheader.py
rename : xen/include/public/foreign/reference.size => tools/include/xen-foreign/reference.size
rename : xen/include/public/foreign/structs.py => tools/include/xen-foreign/structs.py

18 years agoRemove machine setting from HOSTCFLAGS.
Keir Fraser [Sun, 27 Jan 2008 17:05:47 +0000 (17:05 +0000)]
Remove machine setting from HOSTCFLAGS.

The host compiler must know how to produce runnable binaries without
special settings.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoxenstore headers also need public includes.
Keir Fraser [Sun, 27 Jan 2008 17:05:05 +0000 (17:05 +0000)]
xenstore headers also need public includes.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agolibxc: Push parallel build of libraries down to a new phony target, as
Keir Fraser [Sun, 27 Jan 2008 17:03:35 +0000 (17:03 +0000)]
libxc: Push parallel build of libraries down to a new phony target, as
'build' is already loaded with library dependencies on ia64.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoFix ia64 public headers installation typo.
Keir Fraser [Sun, 27 Jan 2008 16:44:04 +0000 (16:44 +0000)]
Fix ia64 public headers installation typo.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years agoDo not special-case native architecture in mkchecker.py.
Keir Fraser [Sun, 27 Jan 2008 13:03:10 +0000 (13:03 +0000)]
Do not special-case native architecture in mkchecker.py.
From: Bastian Blank <waldi@debian.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoUpdate hgignore for tools/include/xen/*
Keir Fraser [Sun, 27 Jan 2008 12:59:30 +0000 (12:59 +0000)]
Update hgignore for tools/include/xen/*

18 years agoDefine CFLAGS and LDFLAGS for libxenstore.
Keir Fraser [Sun, 27 Jan 2008 12:58:15 +0000 (12:58 +0000)]
Define CFLAGS and LDFLAGS for libxenstore.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoDefine CFLAGS and LDFLAGS for libxenguest.
Keir Fraser [Sun, 27 Jan 2008 12:58:02 +0000 (12:58 +0000)]
Define CFLAGS and LDFLAGS for libxenguest.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoDefine CFLAGS and LDFLAGS for libxenctrl.
Keir Fraser [Sun, 27 Jan 2008 12:57:14 +0000 (12:57 +0000)]
Define CFLAGS and LDFLAGS for libxenctrl.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agolibxc: Remove duplicate zlib check.
Keir Fraser [Sun, 27 Jan 2008 12:53:56 +0000 (12:53 +0000)]
libxc: Remove duplicate zlib check.

It is already checked in tools/check/check_zlib.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agotools: Merge clean and distclean target.
Keir Fraser [Sun, 27 Jan 2008 12:53:35 +0000 (12:53 +0000)]
tools: Merge clean and distclean target.
Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoHypervisor build subsystem does not need COMPILE_ARCH/COMPILE_SUBARCH.
Keir Fraser [Sun, 27 Jan 2008 12:49:42 +0000 (12:49 +0000)]
Hypervisor build subsystem does not need COMPILE_ARCH/COMPILE_SUBARCH.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoAdd check to subdirs.
Keir Fraser [Sat, 26 Jan 2008 15:27:18 +0000 (15:27 +0000)]
Add check to subdirs.
Also make sure that the install target doesn't call the install check.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoAdd ioemu to subdirs.
Keir Fraser [Sat, 26 Jan 2008 15:26:55 +0000 (15:26 +0000)]
Add ioemu to subdirs.
ioemu is handled different because of the configure setup.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoCall makefile recursively for subdirs.
Keir Fraser [Sat, 26 Jan 2008 15:26:41 +0000 (15:26 +0000)]
Call makefile recursively for subdirs.
This makes it possible to handle subdirs differently.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoRemove tools/guest-headers; no longer needed.
Keir Fraser [Sat, 26 Jan 2008 15:26:15 +0000 (15:26 +0000)]
Remove tools/guest-headers; no longer needed.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoMove xen/foreign build out of tree setup.
Keir Fraser [Sat, 26 Jan 2008 14:44:30 +0000 (14:44 +0000)]
Move xen/foreign build out of tree setup.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoUse real source files for xen/foreign build.
Keir Fraser [Sat, 26 Jan 2008 14:43:47 +0000 (14:43 +0000)]
Use real source files for xen/foreign build.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoMove xen/sys parts down to tools/include/xen-sys.
Keir Fraser [Sat, 26 Jan 2008 14:42:55 +0000 (14:42 +0000)]
Move xen/sys parts down to tools/include/xen-sys.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoAdd PRIVATE_BINDIR. Use it.
Keir Fraser [Sat, 26 Jan 2008 14:42:03 +0000 (14:42 +0000)]
Add PRIVATE_BINDIR. Use it.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoAlso install xen/sys into headers.
Keir Fraser [Sat, 26 Jan 2008 14:41:39 +0000 (14:41 +0000)]
Also install xen/sys into headers.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agox86: When Xen is notified that CPU frequency has changed, do not trust
Keir Fraser [Sat, 26 Jan 2008 11:29:29 +0000 (11:29 +0000)]
x86: When Xen is notified that CPU frequency has changed, do not trust
the current TSC-extrapolated time when we re-sync.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoInroduce new vcpu_lock_affinity() and vcpu_unlock_affinity() helper
Keir Fraser [Sat, 26 Jan 2008 11:25:48 +0000 (11:25 +0000)]
Inroduce new vcpu_lock_affinity() and vcpu_unlock_affinity() helper
functions for use by x86's continue_hypercall_on_cpu().

This has two advantages:
 1. We can lock out ordinary vcpu_set_affinity() commands from dom0.
 2. We avoid the (in this case bogus) check for dom0_vcpus_pin.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoRemove commented-out dropping from previous changeset.
Keir Fraser [Sat, 26 Jan 2008 10:39:58 +0000 (10:39 +0000)]
Remove commented-out dropping from previous changeset.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoMove generation of public header hierarchy into the tools.
Keir Fraser [Sat, 26 Jan 2008 10:38:44 +0000 (10:38 +0000)]
Move generation of public header hierarchy into the tools.

This patch merges the two versions of public header generation
currently used in the build into one.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoblktap: Clean up makefile and linked libs.
Keir Fraser [Sat, 26 Jan 2008 10:17:33 +0000 (10:17 +0000)]
blktap: Clean up makefile and linked libs.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoChangeset 16771 introduced a new file called tools/check/funcs.sh. This
Keir Fraser [Sat, 26 Jan 2008 10:16:21 +0000 (10:16 +0000)]
Changeset 16771 introduced a new file called tools/check/funcs.sh. This
file needs to be installed into distdir together with the check scripts.

Signed-off-by: Frank Arnold <frank.arnold@amd.com>
18 years agoUse VPATH instead of symlinks for libelf inclusion into libxenctrl.
Keir Fraser [Sat, 26 Jan 2008 10:15:38 +0000 (10:15 +0000)]
Use VPATH instead of symlinks for libelf inclusion into libxenctrl.
Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoUpdate XenAPI version number, changelog, and cover sheet.
Keir Fraser [Fri, 25 Jan 2008 16:30:34 +0000 (16:30 +0000)]
Update XenAPI version number, changelog, and cover sheet.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
18 years agox86: Ensure RAM holes really are not mapped in Xen's ongoing 1:1 physmap.
Keir Fraser [Fri, 25 Jan 2008 16:26:31 +0000 (16:26 +0000)]
x86: Ensure RAM holes really are not mapped in Xen's ongoing 1:1 physmap.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86: First 1MB of memory should be mapped with 4kB mappings to avoid
Keir Fraser [Fri, 25 Jan 2008 16:02:20 +0000 (16:02 +0000)]
x86: First 1MB of memory should be mapped with 4kB mappings to avoid
conflict with fixed-range MTRRs. While there, we now map the VGA hole
as uncacheable.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86: Clarify early_page_fault() handler intent, and improve debug tracing.
Keir Fraser [Fri, 25 Jan 2008 13:42:36 +0000 (13:42 +0000)]
x86: Clarify early_page_fault() handler intent, and improve debug tracing.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoFix leaking of /vm/<uuid> path in xenstore on various VM lifecycle events.
Keir Fraser [Fri, 25 Jan 2008 13:29:51 +0000 (13:29 +0000)]
Fix leaking of /vm/<uuid> path in xenstore on various VM lifecycle events.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
18 years agoRemove outdated comments concerning Xen API in xend configuration file.
Keir Fraser [Fri, 25 Jan 2008 13:29:31 +0000 (13:29 +0000)]
Remove outdated comments concerning Xen API in xend configuration file.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
18 years agoFix 'on_*=rename-restart' domain configuration option.
Keir Fraser [Fri, 25 Jan 2008 13:29:07 +0000 (13:29 +0000)]
Fix 'on_*=rename-restart' domain configuration option.

When setting e.g. 'on_crash=rename-restart' option in domain config
and crashing guest OS running in the domain, the new domain is
restarted with same name as renamed domain.

jfehlig4: # xm li
Name                                        ID   Mem VCPUs State Time(s)
Domain-0                                     0   1233   4  r----- 937.9
Domain-e64b12a0-0493-44d7-afde-55c776513426 21   384    1  ---c-  14.3
Domain-e64b12a0-0493-44d7-afde-55c776513426 22   384    1  r-----  7.3

This patch copies the domain info prior to setting new name and uuid
in the crashed domain info and uses the copied domain info to
construct the restarted domain.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
18 years ago(Re)introduce notion of crashed VM power state.
Keir Fraser [Fri, 25 Jan 2008 13:28:25 +0000 (13:28 +0000)]
(Re)introduce notion of crashed VM power state.

The crashed power state is necessary to allow both core-dumping a
crashed but preserved VM and renaming/restarting a crashed VM.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
18 years agox86: Fix host S3.
Keir Fraser [Fri, 25 Jan 2008 13:26:38 +0000 (13:26 +0000)]
x86: Fix host S3.

Time zone info just needs to be calculated in S3 suspend procedure.
However, time_suspend() is also called on AP. That wasteful
get_cmos_time() on AP may break __cpu_die() assumption since
get_cmos_time() can take up to one second. This fix just limits it to
running on the BSP.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
18 years ago[PV-on-HVM] Process event channels notifications in round-robin order
Keir Fraser [Fri, 25 Jan 2008 13:23:39 +0000 (13:23 +0000)]
[PV-on-HVM] Process event channels notifications in round-robin order
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
18 years agoFix losetup -r flag when we specify 'w!' for the disk mode.
Keir Fraser [Fri, 25 Jan 2008 13:22:52 +0000 (13:22 +0000)]
Fix losetup -r flag when we specify 'w!' for the disk mode.
From: Zhigang Wang <zhigang.x.wang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86: make show_page_walk() more robust.
Keir Fraser [Thu, 24 Jan 2008 18:11:44 +0000 (18:11 +0000)]
x86: make show_page_walk() more robust.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agox86, hvm: Only invalidate qemu mapcache on XENMEM_decrease_reservation.
Keir Fraser [Thu, 24 Jan 2008 18:09:26 +0000 (18:09 +0000)]
x86, hvm: Only invalidate qemu mapcache on XENMEM_decrease_reservation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoblock scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
Keir Fraser [Thu, 24 Jan 2008 14:41:26 +0000 (14:41 +0000)]
block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agox86, hvm: MTRR can't cover all the memery ranges
Keir Fraser [Thu, 24 Jan 2008 14:40:35 +0000 (14:40 +0000)]
x86, hvm: MTRR can't cover all the memery ranges
MTRR can't cover all the memery ranges, due to guest E820 is changed
by CS:16728 with current method.
Signed-off-by: Disheng Su <disheng.su@intel.com>
18 years agovt-d: Do FLR of assigned devices with VT-d
Keir Fraser [Thu, 24 Jan 2008 14:39:38 +0000 (14:39 +0000)]
vt-d: Do FLR of assigned devices with VT-d

Currently there is a pdev_flr() function to do FLR before device
assignment in qemu, but most of devices don't have FLR capability.
What's more, should do FLR before assignment and deassignment for
keeping correct device status. If the device doesn't have FLR
capablility, this patch implemented to enter D3hot and return to D0 to
do FLR. And exposed pdev_flr() in VT-d utils, then it can be invoked
by assignment and deassignment functions.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
18 years agoUpdate hgignore list.
Keir Fraser [Thu, 24 Jan 2008 14:38:01 +0000 (14:38 +0000)]
Update hgignore list.

18 years agonetwork-nat: Fix NAT scripts.
Keir Fraser [Thu, 24 Jan 2008 14:37:53 +0000 (14:37 +0000)]
network-nat: Fix NAT scripts.
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
18 years agoFix libfsimage build on Solaris
Keir Fraser [Thu, 24 Jan 2008 14:35:52 +0000 (14:35 +0000)]
Fix libfsimage build on Solaris

The Solaris installation dirs were missing $(PREFIX)

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoioemu: 'lib64' is Linux-specific
Keir Fraser [Thu, 24 Jan 2008 14:35:40 +0000 (14:35 +0000)]
ioemu: 'lib64' is Linux-specific

Only use libdir == 'lib64' on Linux.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoioemu: Improve xenstore_read_vncpasswd().
Keir Fraser [Thu, 24 Jan 2008 14:33:46 +0000 (14:33 +0000)]
ioemu: Improve xenstore_read_vncpasswd().
From: Peter Johnston <peter.johnston@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agovmx realmode: Restructure code for clarity and better treatment of
Keir Fraser [Thu, 24 Jan 2008 14:29:13 +0000 (14:29 +0000)]
vmx realmode: Restructure code for clarity and better treatment of
VM_ENTRY_INTR_INFO. Also add more sanity checking.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoioemu: handle empty vnc passwd
Keir Fraser [Wed, 23 Jan 2008 18:12:37 +0000 (18:12 +0000)]
ioemu: handle empty vnc passwd
Have xenstore_read_vncpasswd return -1 when it is unable to read the
passwd from XenStore (and store an empty password).  However, don't
exit in such case since it may just mean that the use didn't set a
passwd. If he really did, xend would have given the passwd flag in the
-vnc option, and the empty passwd would make the vnc authentication
reject any password anyway.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Acked-by: Daniel P. Berrange <berrange@redhat.com>
18 years agominios: permit blkfront to write from mapped memory
Keir Fraser [Wed, 23 Jan 2008 18:05:27 +0000 (18:05 +0000)]
minios: permit blkfront to write from mapped memory
Missing call to virtual_to_mfn

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoioemu: Use asprintf instead of PATH_MAX, which POSIX says to be facultative.
Keir Fraser [Wed, 23 Jan 2008 18:05:12 +0000 (18:05 +0000)]
ioemu: Use asprintf instead of PATH_MAX, which POSIX says to be facultative.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoioemu: fix xc_handle declaration
Keir Fraser [Wed, 23 Jan 2008 18:03:52 +0000 (18:03 +0000)]
ioemu: fix xc_handle declaration

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoioemu: fix phys_ram_addr parameter usage
Keir Fraser [Wed, 23 Jan 2008 18:03:25 +0000 (18:03 +0000)]
ioemu: fix phys_ram_addr parameter usage

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoioemu: cache the BlockDriverState pointer
Keir Fraser [Wed, 23 Jan 2008 18:02:48 +0000 (18:02 +0000)]
ioemu: cache the BlockDriverState pointer
This actually fixes a bug in the scsi case.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agopv-on-hvm: Fix up linux code after hypercall-type-checking changes.
Keir Fraser [Wed, 23 Jan 2008 15:42:52 +0000 (15:42 +0000)]
pv-on-hvm: Fix up linux code after hypercall-type-checking changes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agovmx realmode: Implement new x86_emulate hook load_fpu_ctxt().
Keir Fraser [Wed, 23 Jan 2008 14:30:56 +0000 (14:30 +0000)]
vmx realmode: Implement new x86_emulate hook load_fpu_ctxt().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86_emulate: Emulate FNINIT, FNSTCW, FNSTSW x87 instructions.
Keir Fraser [Wed, 23 Jan 2008 14:30:29 +0000 (14:30 +0000)]
x86_emulate: Emulate FNINIT, FNSTCW, FNSTSW x87 instructions.
Provide new hook ->load_fpu_ctxt() to ensure emulated environment's
FPU state is loaded onto the local processor.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86_emulate: Fix CLTS emulation.
Keir Fraser [Wed, 23 Jan 2008 13:59:24 +0000 (13:59 +0000)]
x86_emulate: Fix CLTS emulation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoChangeLog: Document new set_target xenstore and domctl commands.
Keir Fraser [Wed, 23 Jan 2008 13:27:21 +0000 (13:27 +0000)]
ChangeLog: Document new set_target xenstore and domctl commands.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agoNew XS_SET_TARGET
Keir Fraser [Wed, 23 Jan 2008 13:22:13 +0000 (13:22 +0000)]
New XS_SET_TARGET
Stubdomains (and probably other domain disagregation elements too)
need to be able to tinker with another domain.  This adds
XS_SET_TARGET so that XenStore allows domains to have permissions on
files on which the "target" has permissions.  This also adds
xs_set_target, called by the domain builder when the 'target' option
is used in the configuration.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoNew XEN_DOMCTL_set_target
Keir Fraser [Wed, 23 Jan 2008 13:21:44 +0000 (13:21 +0000)]
New XEN_DOMCTL_set_target
Stubdomains (and probably other domain disagregation elements too)
need to be able to tinker with another domain.  This adds IS_PRIV_FOR
that extends IS_PRIV by allowing domains to have privileges over a
given "target" domain.  XEN_DOMCTL_set_target permits to set this
"target". A new 'target' configuration option makes the domain builder
use it.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agotools/check: Add explicit include path for funcs.sh.
Keir Fraser [Wed, 23 Jan 2008 11:21:35 +0000 (11:21 +0000)]
tools/check: Add explicit include path for funcs.sh.

When the current directory is not in $PATH,
then the patch fixes the following errors:

Checking check_brctl: .: funcs.sh: not found
Checking check_crypto_lib: .: funcs.sh: not found
Checking check_curl: .: funcs.sh: not found
Checking check_iproute: .: funcs.sh: not found
Checking check_python: .: funcs.sh: not found
Checking check_python_xml: .: funcs.sh: not found
Checking check_udev: .: funcs.sh: not found
Checking check_xml2: .: funcs.sh: not found
Checking check_zlib_lib: .: funcs.sh: not found

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
18 years agominios: make allocation of page tables for ondemand mapping lazy
Keir Fraser [Wed, 23 Jan 2008 11:20:01 +0000 (11:20 +0000)]
minios: make allocation of page tables for ondemand mapping lazy

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
18 years agoRemove auto-generated files in extboot/ directory.
Keir Fraser [Wed, 23 Jan 2008 11:15:57 +0000 (11:15 +0000)]
Remove auto-generated files in extboot/ directory.

18 years agoMerge with ia64 tree
Keir Fraser [Tue, 22 Jan 2008 19:26:52 +0000 (19:26 +0000)]
Merge with ia64 tree

18 years agovmx: Disable vmxassist in the default build.
Keir Fraser [Tue, 22 Jan 2008 17:20:39 +0000 (17:20 +0000)]
vmx: Disable vmxassist in the default build.
We now use x86 real-mode emulation by default.
Select old behaviour (for now) by specifying vmxassist=y at build time.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agovmx realmode: Faster emulation of REP INS and REP OUTS.
Keir Fraser [Tue, 22 Jan 2008 17:18:51 +0000 (17:18 +0000)]
vmx realmode: Faster emulation of REP INS and REP OUTS.
This makes, in particular, reading files via the BIOS disk abstraction
much much much faster.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years agox86_emulate: Provide callbacks for faster emulation of:
Keir Fraser [Tue, 22 Jan 2008 17:18:02 +0000 (17:18 +0000)]
x86_emulate: Provide callbacks for faster emulation of:
 REP MOVS, REP INS, REP OUTS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
18 years ago[IA64][IOEMU] Add back ia64
Alex Williamson [Tue, 22 Jan 2008 16:04:41 +0000 (09:04 -0700)]
[IA64][IOEMU] Add back ia64

cset 16789:51a7e508bd01 dropped ia64 from the configure script, add it back

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years agomerge with xen-unstable.hg (staging)
Alex Williamson [Tue, 22 Jan 2008 15:30:40 +0000 (08:30 -0700)]
merge with xen-unstable.hg (staging)

18 years ago[IA64] Fix a perf counter typo
Alex Williamson [Tue, 22 Jan 2008 15:27:29 +0000 (08:27 -0700)]
[IA64] Fix a perf counter typo

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
18 years ago[IA64] Introduce dom0_vhpt_size_log2 boot option to change dom0 vhpt size
Alex Williamson [Tue, 22 Jan 2008 15:26:20 +0000 (08:26 -0700)]
[IA64] Introduce dom0_vhpt_size_log2 boot option to change dom0 vhpt size

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years agoAdd MANDIR, MAN1DIR and MAN8DIR. Use it.
Keir Fraser [Tue, 22 Jan 2008 14:35:17 +0000 (14:35 +0000)]
Add MANDIR, MAN1DIR and MAN8DIR. Use it.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoAdd SBINDIR. Use it always.
Keir Fraser [Tue, 22 Jan 2008 14:35:02 +0000 (14:35 +0000)]
Add SBINDIR. Use it always.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoioemu: Use XEN_TARGET_ARCH instead of uname -m.
Keir Fraser [Tue, 22 Jan 2008 14:34:37 +0000 (14:34 +0000)]
ioemu: Use XEN_TARGET_ARCH instead of uname -m.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoAdd BINDIR. Use it.
Keir Fraser [Tue, 22 Jan 2008 14:31:10 +0000 (14:31 +0000)]
Add BINDIR. Use it.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoAdd INCLUDEDIR. Use it.
Keir Fraser [Tue, 22 Jan 2008 14:30:21 +0000 (14:30 +0000)]
Add INCLUDEDIR. Use it.

Signed-off-by: Bastian Blank <waldi@debian.org>
18 years agoApply PREFIX directly to LIBDIR.
Keir Fraser [Tue, 22 Jan 2008 14:29:11 +0000 (14:29 +0000)]
Apply PREFIX directly to LIBDIR.

Signed-off-by: Bastian Blank <waldi@debian.org>